package com.daichi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.daichi.entity.SysUser;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author Daichi Chou
 * @since 2021-06-05
 */
public interface SysUserService extends IService<SysUser> {

    SysUser getUserByName(String username);

    String getUserAuthorityInfo(String username);

    SysUser cacheUserByName(String username);

    void clearUserAuthorityInfo(String username);

    void clearUserAuthorityInfoByRoleId(Long roleId);

    void clearUserAuthorityInfoByMenuId(Long menuId);

    void clearUserInfo(String username);

}
